import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import dict from './modules/dict'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
import selectAgentGrade from './modules/selectAgentGrade'
import selectAgent from './modules/selectAgent'
import selectSchool from './modules/selectSchool'
import selectCourse from './modules/selectCourse'
import getters from './getters'
import selectWord from './modules/selectWord'
import selectContentType from './modules/selectContentType'
import selectOrganization from './modules/selectOrganization'
import selectTag from './modules/selectTag'
import selectTeacher from './modules/selectTeacher'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    dict,
    user,
    tagsView,
    permission,
    settings,
    selectAgentGrade,
    selectAgent,
    selectSchool,
    selectCourse,
    selectWord,
    selectContentType,
    selectOrganization,
    selectTag,
    selectTeacher,
  },
  getters
})

export default store
